#include "TaskThreadPool.h"


TaskThreadPool* GTask=NULL;


void TaskThreadPool::AddTask(Task* task)
{
	mTask.PushBack(task);
}

void TaskThreadPool::DoLoop(float elapsed)
{
	if(!mTask.Empty())
	{
		Task* task = mTask.Front();
		task->DoTask();
		mTask.PopFront();
		delete task;
	}
}
